<?xml version="1.0"?>
<recipe>

    <merge from="root/AndroidManifest.xml.ftl"
             to="${escapeXmlAttribute(manifestOut)}/AndroidManifest.xml" />

    <#if hasTitle>
    <merge from="root/res/values/strings.xml.ftl"
             to="${escapeXmlAttribute(resOut)}/values/strings.xml" />
    </#if>

    <instantiate from="root/res/layout/activity_template.xml.ftl"
                   to="${escapeXmlAttribute(resOut)}/layout/${layoutName}.xml" />

    <instantiate from="root/src/app_package/TemplateViewModel.java.ftl"
      to="${escapeXmlAttribute(viewModelOut)}/model/viewModel/${viewModelClass}.java" />

    <#if isGenerateIView>
    <instantiate from="root/src/app_package/ITemplateViewl.java.ftl"
             to="${escapeXmlAttribute(viewModelOut)}/model/viewModel/interfaces/${iViewName}.java"  />
    </#if>

    <instantiate from="root/src/app_package/TemplateActivity.java.ftl"
                   to="${escapeXmlAttribute(srcOut)}/${activityClass}.java" />

    <open file="${escapeXmlAttribute(srcOut)}/${activityClass}.java" />

</recipe>
